<?php
/*
 * configure all forms here for the router to check
 * basic form configuration array
 * array(
		'form_ident'=> 'addArticle',
		'form_ident_alias'=> 'addArticleFormAlias',
		'form_fields'=> array(
			array(
				'field_set_id'=> 'test_field_set_a',
				'fields'=> array(
					array(
						'input_name'=> '',
						'input_id'=> '',
						'input_type'=> '',
						'radio_button_group'=> '',
						'default_value'=> ''
					)
			)
		),
		'submit_button'=> array(
			'value'=> 'submit',
			'id'=> 'addArticleFormSubmit'
		),
		'action'=> 'index.php',
		'method'=> 'post',
		'form_handler_class'=> 'ManageArticlesController',
		'form_handler_class_method'=> 'handleAddArticleForm'
	)
 */
$s_formIdentField = fw_util_encrypt('identifier', 5);
$s_formPostSubmitHandlerField = fw_util_encrypt('formTimeStamp'. $s_formIdentField, 10);
$s_formSessionArraySubmitHandler = 'submitHandlerArray';

$arr_forms = array(
	//login form configuration array
	array(
		'form_ident'=> 'login-form',
		'form_ident_alias'=> fw_util_encrypt('login-form-alias', 15),
		'form_handler_class'=> 'LoginController',
		'form_handler_class_method'=> 'handleLoginFormSubmit',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'login-form-id', 
		'form_line_elem'=> 'li',
		'form_name'=> 'login-form',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'user-credentials',
				'field_set_legend'=> 'login form',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'username',
						'label'=> 'username', 
						'name'=> 'username', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'user-password',
						'label'=> 'password', 
						'name'=> 'user-password', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 50, 
						'type'=> 'password', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'login-submit-button',
						'label'=> '', 
						'name'=> 'login-submit-button', 
						'value'=> 'login', 
						'minLength'=> 5, 
						'maxLength'=> 5, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'alpha', 'error_message'=> 'letters only please')
						)
					)
				)
			)
		)
	),
	//contact us form
	array(
		'form_ident'=> 'contact-us-form',
		'form_ident_alias'=> fw_util_encrypt('contact-us-form-alias', 15),
		'form_handler_class'=> 'IM_C_Pub_Contact',
		'form_handler_class_method'=> 'handleContactFormSubmit',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'contact-us-form-id', 
		'form_line_elem'=> 'p',
		'form_name'=> 'contact-us-formname',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'contact-us-form-fieldset',
				'field_set_legend'=> '',
				'inline_errors'=> true,
				'fields'=> array(
					array(
						'field_id'=> 'contact-us-form-name',
						'label'=> 'name', 
						'name'=> 'contact-us-form-name', 
						'value'=> '', 
						'minLength'=> 3, 
						'maxLength'=> 30, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value'),
							array('validate'=>'alpha', 'error_message'=> 'letters only please')
						)
					),
					
					array(
						'field_id'=> 'contact-us-form-email',
						'label'=> 'e-mail', 
						'name'=> 'contact-us-form-email', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 40, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value'),
							array('validate'=>'email', 'error_message'=> 'valid email please')
						)
					),
					
					array(
						'field_id'=> 'contact-us-form-contact-no',
						'label'=> 'contact no.', 
						'name'=> 'contact-us-form-contact-no', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array()
					),
					
					array(
						'field_id'=> 'contact-us-form-inquiry',
						'label'=> 'inquiry', 
						'name'=> 'contact-us-form-inquiry', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 500, 
						'type'=> 'textarea', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'contact-us-form-submit-button',
						'label'=> '', 
						'name'=> 'contact-us-form-submit-button', 
						'value'=> 'submit', 
						'minLength'=> 5, 
						'maxLength'=> 30, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required')
						)
					)
				)
			)
		)
	),
	
	//be discovered form
	array(
		'form_ident'=> 'be-discovered-form',
		'form_ident_alias'=> fw_util_encrypt('be-discovered-form-alias', 15),
		'form_handler_class'=> 'IM_C_Pub_Contact',
		'form_handler_class_method'=> 'handleBeDiscoveredFormSubmit',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'be-discovered-form-id', 
		'form_line_elem'=> 'p',
		'form_name'=> 'be-discovered-form',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'be-discovered-fieldset',
				'field_set_legend'=> '',
				'inline_errors'=> true,
				'fields'=> array(
					array(
						'field_id'=> 'be-discovered-form-name',
						'label'=> 'name', 
						'name'=> 'be-discovered-form-name', 
						'value'=> '', 
						'minLength'=> 3, 
						'maxLength'=> 30, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value'),
							array('validate'=>'alpha', 'error_message'=> 'letters only please')
						)
					),
					
					array(
						'field_id'=> 'be-discovered-form-email',
						'label'=> 'e-mail', 
						'name'=> 'be-discovered-form-email', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 40, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value'),
							array('validate'=>'email', 'error_message'=> 'valid email please')
						)
					),
					
					array(
						'field_id'=> 'be-discovered-form-contact-no',
						'label'=> 'contact no.', 
						'name'=> 'be-discovered-form-contact-no', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array()
					),
					
					array(
							'field_id'=> 'be-discovered-form-pictures',
							'label'=> 'sample pictures',
							'name'=> 'be-discovered-form-pictures',
							'value'=> '',
							'minLength'=> 2,
							'maxLength'=> 500,
							'type'=> 'file',
							'default'=> false,
							'rules'=> 	array(
							)
					),
						
					array(
						'field_id'=> 'be-discovered-form-about-me',
						'label'=> 'about me', 
						'name'=> 'be-discovered-form-about-me', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 500, 
						'type'=> 'textarea', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
						
					array(
						'field_id'=> 'be-discovered-form-submit-button',
						'label'=> '', 
						'name'=> 'be-discovered-form-submit-button', 
						'value'=> 'submit', 
						'minLength'=> 5, 
						'maxLength'=> 30, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required')
						)
					)
				)
			)
		)
	),
	
	//add user form configuration array
	array(
		'form_ident'=> 'add-user-form',
		'form_ident_alias'=> fw_util_encrypt('add-user-form', 15),
		'form_handler_class'=> 'IM_C_ManageUsers',
		'form_handler_class_method'=> 'handleAddUserSubmit',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'add-user-form', 
		'form_line_elem'=> 'li',
		'form_name'=> 'add-user-form',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'user-credentials',
				'field_set_legend'=> 'user information',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'username',
						'label'=> 'username', 
						'name'=> 'username', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'user-password',
						'label'=> 'password', 
						'name'=> 'user-password', 
						'value'=> '', 
						'minLength'=> 5, 
						'maxLength'=> 50, 
						'type'=> 'password', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'add-user-form-submit-button',
						'label'=> '', 
						'name'=> 'add-user-form-submit-button', 
						'value'=> 'add user', 
						'minLength'=> 5, 
						'maxLength'=> 5, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
				)
			)
		)
	),
	
	//add article form configuration array
	array(
		'form_ident'=> 'adminAddModel',
		'form_ident_alias'=> fw_util_encrypt('adminAddModelFormAlias', 12),
		'form_handler_class'=> 'IM_C_ManageModels',
		'form_handler_class_method'=> 'handleAddModelForm',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'add-model-form-id', 
		'form_line_elem'=> 'li',
		'form_name'=> 'addModelForm',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'add-model-form-basic-info',
				'field_set_legend'=> 'basic model info',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-name',
						'label'=> 'display name', 
						'name'=> 'model-name', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					array(
						'field_id'=> 'model-full-name',
						'label'=> 'full name', 
						'name'=> 'model-full-name', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
					/*
					array(
						'field_id'=> 'model-picture',
						'label'=> 'cover picture', 
						'name'=> 'model-picture', 
						'value'=> '', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'file', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
					*/
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-stats',
				'field_set_legend'=> 'vital statistics',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-height',
						'label'=> 'height', 
						'name'=> 'model-height', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-chest',
						'label'=> 'chest', 
						'name'=> 'model-chest', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-waist',
						'label'=> 'waist', 
						'name'=> 'model-waist', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-hips',
						'label'=> 'hips', 
						'name'=> 'model-hips', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-shoe',
						'label'=> 'shoe size', 
						'name'=> 'model-shoe', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-hair',
						'label'=> 'hair', 
						'name'=> 'model-hair', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-eyes',
						'label'=> 'eye color', 
						'name'=> 'model-eyes', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-gender',
				'field_set_legend'=> 'model gender',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-gender-male',
						'label'=> 'male', 
						'name'=> 'model-gender', 
						'value'=> 'male', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-gender-female',
						'label'=> 'female', 
						'name'=> 'model-gender', 
						'value'=> 'female', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			array(
				'field_set_id'=> 'add-model-form-selector-main-board',
				'field_set_legend'=> 'visible on main board?',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-mainboard-yes',
						'label'=> 'yes', 
						'name'=> 'model-mainboard', 
						'value'=> 'y', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-mainboard-no',
						'label'=> 'no', 
						'name'=> 'model-mainboard', 
						'value'=> 'n', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-development',
				'field_set_legend'=> 'visible in development?',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-development-yes',
						'label'=> 'yes', 
						'name'=> 'model-development', 
						'value'=> 'y', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-development-no',
						'label'=> 'no', 
						'name'=> 'model-development', 
						'value'=> 'n', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-in-town',
				'field_set_legend'=> 'visible in "in town?"',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-in-town-yes',
						'label'=> 'yes', 
						'name'=> 'model-in-town', 
						'value'=> 'y', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-in-town-no',
						'label'=> 'no', 
						'name'=> 'model-in-town', 
						'value'=> 'n', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-submit',
				'field_set_legend'=> 'submission',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-published',
						'label'=> 'published by default?', 
						'name'=> 'model-published', 
						'value'=> 'x', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'checkbox', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'add-model-submit',
						'label'=> '', 
						'name'=> 'add-article-submit', 
						'value'=> 'add model', 
						'minLength'=> 11, 
						'maxLength'=> 11, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
				)
			)
		)
	),
	
	//add article form configuration array
	array(
		'form_ident'=> 'adminUpdateModel',
		'form_ident_alias'=> fw_util_encrypt('adminUpdateModelFormAlias', 12),
		'form_handler_class'=> 'IM_C_ManageModels',
		'form_handler_class_method'=> 'handleUpdateModelForm',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'add-model-form-id', 
		'form_line_elem'=> 'li',
		'form_name'=> 'addModelForm',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'add-model-form-basic-info',
				'field_set_legend'=> 'basic model info',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-name',
						'label'=> 'display name', 
						'name'=> 'model-name', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					array(
						'field_id'=> 'model-full-name',
						'label'=> 'full name', 
						'name'=> 'model-full-name', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
					/*
					array(
						'field_id'=> 'model-picture',
						'label'=> 'cover picture', 
						'name'=> 'model-picture', 
						'value'=> '', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'file', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
					*/
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-stats',
				'field_set_legend'=> 'vital statistics',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-height',
						'label'=> 'height', 
						'name'=> 'model-height', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-chest',
						'label'=> 'chest', 
						'name'=> 'model-chest', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-waist',
						'label'=> 'waist', 
						'name'=> 'model-waist', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-hips',
						'label'=> 'hips', 
						'name'=> 'model-hips', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-shoe',
						'label'=> 'shoe size', 
						'name'=> 'model-shoe', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-hair',
						'label'=> 'hair', 
						'name'=> 'model-hair', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'model-eyes',
						'label'=> 'eye color', 
						'name'=> 'model-eyes', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-gender',
				'field_set_legend'=> 'model gender',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-gender-male',
						'label'=> 'male', 
						'name'=> 'model-gender', 
						'value'=> 'male', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-gender-female',
						'label'=> 'female', 
						'name'=> 'model-gender', 
						'value'=> 'female', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-main-board',
				'field_set_legend'=> 'visible on main board?',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-mainboard-yes',
						'label'=> 'yes', 
						'name'=> 'model-mainboard', 
						'value'=> 'y', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-mainboard-no',
						'label'=> 'no', 
						'name'=> 'model-mainboard', 
						'value'=> 'n', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-development',
				'field_set_legend'=> 'visible in development?',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-development-yes',
						'label'=> 'yes', 
						'name'=> 'model-development', 
						'value'=> 'y', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-development-no',
						'label'=> 'no', 
						'name'=> 'model-development', 
						'value'=> 'n', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-selector-in-town',
				'field_set_legend'=> 'visible in "in town?"',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-in-town-yes',
						'label'=> 'yes', 
						'name'=> 'model-in-town', 
						'value'=> 'y', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-in-town-no',
						'label'=> 'no', 
						'name'=> 'model-in-town', 
						'value'=> 'n', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'radio', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					)
				)
			),
			
			array(
				'field_set_id'=> 'add-model-form-submit',
				'field_set_legend'=> 'submission',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'model-published',
						'label'=> 'publish?', 
						'name'=> 'model-published', 
						'value'=> 'x', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'checkbox', 
						'default'=> false,
						'rules'=> 	array(
							
						)
					),
					
					array(
						'field_id'=> 'model-ident',
						'label'=> '', 
						'name'=> 'model-ident', 
						'value'=> 'x', 
						'minLength'=> 0, 
						'maxLength'=> 0, 
						'type'=> 'hidden', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'add-model-submit',
						'label'=> '', 
						'name'=> 'add-model-submit', 
						'value'=> 'submit model', 
						'minLength'=> 11, 
						'maxLength'=> 11, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
				)
			)
		)
	),
	
	
	//update article form configuration array
	array(
		'form_ident'=> 'updateArticle',
		'form_ident_alias'=> fw_util_encrypt('updateArticleFormAlias', 12),
		'form_handler_class'=> 'ManageArticlesController',
		'form_handler_class_method'=> 'handleUpdateArticleForm',
		'action'=> fw_util_getCurrUrl(),
		'method'=> 'POST', 
		'multipart'=> false, 
		'form_id'=> 'updateArticleForm', 
		'form_line_elem'=> 'p',
		'form_name'=> 'updateArticleForm',
		'field_sets'=> array(
			array(
				'field_set_id'=> 'update-article-form-fieldset-1',
				'field_set_legend'=> 'update this article',
				'inline_errors'=> false,
				'fields'=> array(
					array(
						'field_id'=> 'articleTitle',
						'label'=> 'article title', 
						'name'=> 'articleTitle', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> 50, 
						'type'=> 'text', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					),
					
					array(
						'field_id'=> 'articleContent',
						'label'=> 'article content', 
						'name'=> 'articleContent', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> '1000', 
						'type'=> 'textarea', 
						'default'=> false,
						'rules'=> 	array()
					),
					
					array(
						'field_id'=> 'articleId',
						'label'=> '', 
						'name'=> 'articleId', 
						'value'=> '', 
						'minLength'=> 1, 
						'maxLength'=> '50', 
						'type'=> 'hidden', 
						'default'=> false,
						'rules'=> 	array(array('validate'=>'required', 'error_message'=> 'required value'))
					),
					
					array(
						'field_id'=> 'update-article-submit',
						'label'=> '', 
						'name'=> 'update-article-submit', 
						'value'=> 'update article', 
						'minLength'=> 11, 
						'maxLength'=> 11, 
						'type'=> 'submit', 
						'default'=> false,
						'rules'=> 	array(
							array('validate'=>'required', 'error_message'=> 'required value')
						)
					)
				)
			)
		)
	),	
	
);
?>